﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RecipesManager.RecipesImporter
{   
    //Classe per contenere la ricetta importata col RecipeImporter
    public class ImportedRecipe
    {
      #region Data
      public string Name { get; set; }
      public string OriginalSource { get; set; }
      public int PreparationHours { get; set; }
      public int PreparationMinutes { get; set; }
      public int Servings { get; set; }
      public string MeasuringUnit { get; set; }
      public List<ImportedIngredient> Ingredients { get; set; }
      public List<string> Steps { get; set; }
      public List<string> Trials { get; set; }
      private static int EMPTY_VALUE = -10000;

      public ImportedRecipe()
      {
        Name = "";
        OriginalSource = "";
        PreparationHours = EMPTY_VALUE;
        PreparationMinutes = EMPTY_VALUE;
        Servings = EMPTY_VALUE;
        MeasuringUnit = "";
        Ingredients = new List<ImportedIngredient>();
        Steps = new List<string>();
        Trials = new List<string>();
      }
      #endregion
    }
}
